@extends('layouts.template')

@section('title', '个人中心')

@section('header')
@endsection

@section('content')
    <div>
        <div class="bill01">
            <ul>
                <li class="overflow_h"><p class="text04">{{$masterStat['order_count']}}<i>单</i><span>历史累计接单</span></p><p style="border:0" class="text05">{{$masterStat['income_sum']}}<i>元</i><span>历史累计收入</span></p></li>
                <li class="overflow_h"><p class="text04">{{$masterStat['three_month_order_count']}}<i>单</i><span>最近三个月接单</span></p><p style="border:0" class="text05">{{$masterStat['three_month_income_sum']}}<i>元</i><span>最近三个月收入</span></p></li>
            </ul>
        </div>

        <div class="bill02">
            <h2>周账单仅显示最近三个月的数据</h2>
            <ul>
                @foreach($list as $row)
                    <li><span>周账单({{$row->start_time->format('m.d')}}-{{$row->end_time->subDay()->format('m.d')}})：</span> <span class="text04">{{$row->order_count}}单</span> <span class="text05">{{$row->income_sum}}元</span><em><a href="{{url("wallet/billdetail/{$row->start_time->timestamp}")}}"><img src="{{asset('images/ico21.png')}}"></a></em></li>
                @endforeach

            </ul>
        </div>

    </div>
@endsection